
package org.bridgen.lang.semantics.ast;
import java.util.*;

public class SemanticError extends java.lang.Object implements IError, Comparable {
    // Declared in ErrorCheck.jrag at line 33

		String message;

    // Declared in ErrorCheck.jrag at line 34

		String displayMessage;

    // Declared in ErrorCheck.jrag at line 35

		int line;

    // Declared in ErrorCheck.jrag at line 36

		int column;

    // Declared in ErrorCheck.jrag at line 37

		public SemanticError(String msg, int line, int column) {
			message = msg;
			displayMessage = "" + line + ": " + message; 
			this.line = line;
			this.column = column;
		}

    // Declared in ErrorCheck.jrag at line 43

		public String toString() {
			return displayMessage; 
		}

    // Declared in ErrorCheck.jrag at line 46

		public int compareTo(Object obj) {
			SemanticError error = (SemanticError)obj;
			return displayMessage.compareTo(error.displayMessage);
		}


}
